package cn.enilu.flash.bean.entity.order;

import cn.enilu.flash.bean.entity.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import java.math.BigDecimal;

@Entity(name = "t_withdraw_order")
@Table(appliesTo = "t_withdraw_order", comment = "任务/订单凭证")
@Data
@EntityListeners(AuditingEntityListener.class)
public class WithdrawOrder extends BaseEntity {
    @Column(columnDefinition = "varchar(64) comment '用户真实姓名'")
    private String realName;
    @Column(columnDefinition = "int(1) comment '凭证类型：1支付宝，2微信'")
    private Integer type;
    @Column(columnDefinition = "varchar(64) comment '支付宝账号'")
    private String account;
    @Column(columnDefinition = "decimal(8,2) comment '提现金额'")
    private BigDecimal money;
}
